// import { MsgDoctorUnRead } from '@/service/message/message'
const state = {
  loading: false,
  footerActive: 0,
  messageCount: 0,
  EnterPath: '/'
}

const mutations = {
  showLoad(state: any) {
    state.loading = true
  },
  hideLoad(state: any) {
    state.loading = false
  },
  saveCount(state: any, count: any) {
    state.messageCount = count
  },
  saveEnterPath(state: any, path: any) {
    state.EnterPath = path
  }
}
const actions = {
  //   getcount({ commit }, params) {
  //     MsgDoctorUnRead(params).then((res) => {
  //       commit('saveCount', res.data)
  //     })
  //   }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
